
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-goods_title" data-rule="required" class="form-control" name="row[goods_title]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('商品副标题')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-goods_desc"  class="form-control" name="row[goods_desc]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-goods_image" data-rule="required" class="form-control" size="50" name="row[goods_image]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-goods_image" class="btn btn-danger faupload" data-input-id="c-goods_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-goods_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-goods_image" class="btn btn-primary fachoose" data-input-id="c-goods_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-goods_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-goods_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <span>建议大小：250*250</span>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_images')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-goods_images" data-rule="required" class="form-control" size="50" name="row[goods_images]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-goods_images" class="btn btn-danger faupload" data-input-id="c-goods_images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-goods_images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-goods_images" class="btn btn-primary fachoose" data-input-id="c-goods_images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-goods_images"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-goods_images"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <span>建议大小：250*250</span>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Base_sales')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-base_sales" class="form-control" name="row[base_sales]" type="number" value="0">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-goods_num" data-rule="required" class="form-control" name="row[goods_num]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Original_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-original_price" data-rule="required" min="0.01" class="form-control" step="0.01" name="row[original_price]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sales_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sales_price" data-rule="required" min="0.01" class="form-control" step="0.01" name="row[sales_price]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('产品详情')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-goods_content" class="form-control editor" rows="5" name="row[goods_content]" cols="50"></textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Rights_title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-rights_title" data-rule="required" class="form-control" name="row[rights_title]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Rights_card')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-rights_card" data-rule="required" class="form-control" name="row[rights_card]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Rights_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-rights_num" min="1" data-rule="required" class="form-control" name="row[rights_num]" type="number" >
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Rights_tags')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-rights_tags"  class="form-control selectpage"
                   data-source="goods/goods_tags/index"
                   data-multiple="true"
                   data-params='{"custom[status]":1,"custom[way]":1}'
                   data-field="tag_name"
                   name="row[rights_tags]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Rights_content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-rights_content" data-rule="required" class="form-control editor" rows="5" name="row[rights_content]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('权益简要描述')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-rights_desc" class="form-control " rows="5" name="row[rights_desc]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('权益截止时间')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control datetimepicker datetimepicker"
                   name="row[enddate]" data-date-format="YYYY-MM-DD" value="{:date('Y-m-d')}" id="c-enddate"  autocomplete="off">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('权益备注')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-rights_memo" class="form-control " rows="5" name="row[rights_memo]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group  ">
        <label class="control-label col-xs-12 col-sm-2">{:__('选择服务类型')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tag_ids"  class="form-control selectpage"
                   data-source="tags/tags/index"
                   data-multiple="true"
                   data-params='{"custom[status]":1,"custom[way]":2}'
                   data-field="tag_name"
                   name="row[tag_ids]" type="text" value="">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('是否为全部医院')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->

<!--            <div class="radio wayselect">-->
<!--                {foreach name="isAllList" item="vo"}-->
<!--                <label for="row[is_all]-{$key}"><input id="row[is_all]-{$key}" name="row[is_all]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label>-->
<!--                {/foreach}-->
<!--            </div>-->

<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group selectHospitals hide">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('可提供服务医院')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-hospital_ids"  class="form-control selectpage"-->
<!--                   data-source="hospital/hospital/index"-->
<!--                   data-multiple="true"-->
<!--                   data-field="hospital_name"-->
<!--                   name="row[hospital_ids]" type="text">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="statusList" item="vo"}
                <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="0">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
